<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>服务点录入</title>
  <t:base type="jquery,easyui,tools"></t:base>
  <script type="text/javascript">
  $(function() {
		$('#cc').combotree({
			url : 'tmblWorkPlaceController.do?setPFunction&selfId=${tmblWorkPlace.id}',
          width: 155,
          onSelect : function(node) {
				$("#wid").val(node.id);
          }
			
      });
	/* 
		if('${empty wid}' == 'false') { // 设置新增页面时的父级
            $('#cc').combotree('setValue', '${wid}');
        } */
	});

  </script>
 </head>
 <body style="overflow-y: hidden" scroll="no">
<t:formvalid formid="formobj" layout="div" dialog="true" action="tmblWorkPlaceController.do?doAdd">
	<input id="id" name="id" type="hidden" >
	<fieldset class="step">
        <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="序号："/> </label>
            <input id="code" name="code" type="text" style="width: 150px" class="inputxt" errormsg="不能为空" validType="tmbl_work_place,CODE,id" datatype="*">
            <span class="Validform_checktip"><t:mutiLang langKey="请填写序号"/></span>
        </div>
        <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="服务点名称:"/></label>
            <input id="workplace" name="workplace" type="text" style="width: 150px" class="inputxt" errormsg="不能为空" datatype="*">
			<span class="Validform_checktip"><t:mutiLang langKey="请填写服务点名称"/></span>
							
        </div>
        
        <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="所属地区："/> </label>
            <input name="tmblWorkPlace.id" id="wid" type="hidden">
            <input id="cc" >
            <span class="Validform_checktip"><t:mutiLang langKey="请选择所属地区"/></span>
        </div>
        
        
        <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="服务点地址："/></label>
             <input id="address" name="address" type="text" style="width: 150px" class="inputxt" >
			<span class="Validform_checktip"><t:mutiLang langKey="请填写服务点地址"/></span>
							
        </div>
        <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="服务电话："/> </label>
            <input id="telephone" name="telephone" type="text" style="width: 150px" class="inputxt" >
			<span class="Validform_checktip"><t:mutiLang langKey="请填写服务电话"/></span>
							
        </div>
         <div class="form">
            <label class="Validform_label"> <t:mutiLang langKey="运营状况："/> </label>
            <select name="isWork" id="isWork">
	            <option value="1">在运营</option>
	            <option value="0">不在运营</option>
            </select>
			<span class="Validform_checktip"><t:mutiLang langKey="请选择运行状况"/></span>
							
        </div>
	</fieldset>
</t:formvalid>
</body>
  <script src = "webpage/com/estar/wx/bbw/workPlace/tmblWorkPlace.js"></script>		
</html>